package com.emergency.embackend.service;

import com.emergency.embackend.common.PageParams;
import com.emergency.embackend.entity.Share;
import com.emergency.embackend.entity.ShareComment;
import com.emergency.embackend.vo.ShareDetailVO;
import com.emergency.embackend.vo.ShareVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ShareDataService {
    void add(Share share);

    void delete(Long id);

    void update(Share share);

    PageInfo getShareByUser(Long userId, PageParams pageParams);

    PageInfo getAll(PageParams pageParams);

    PageInfo pageTime(PageParams pageParams);

    ShareDetailVO getOne(Long helpId);

    PageInfo underReview(PageParams pageParams);

    void changeStatus(char status, Long id);


    ShareDetailVO getUserOne(Long id);

    void addComment(ShareComment shareComment);


    List<ShareVO> getHistory(Long userId);

}
